//JavaScript代码区域
$(document).ready(function() {
	layui.use('element', function() {
		var element = layui.element;
	});
	$(".layui-body").load("welcome.html");
	$(".addbook").click(function() {
		document.getElementById("index").innerHTML = '<object type="text/html" data="book/addbook.html" width="100%" height="100%" ></object>';
	});
	$(".delbook").click(function() {
		document.getElementById("index").innerHTML = '<object type="text/html" data="book/delbook.html" width="100%" height="100%" ></object>';

	});
	$(".dirbook").click(function() {
		document.getElementById("index").innerHTML = '<object type="text/html" data="book/dirbook.html" width="100%" height="100%" ></object>';

	});
	$(".adduser").click(function() {
		document.getElementById("index").innerHTML = '<object type="text/html" data="user/adduser.html" width="100%" height="100%" ></object>';

	});
	$(".deluser").click(function() {
		document.getElementById("index").innerHTML = '<object type="text/html" data="user/deluser.html" width="100%" height="100%" ></object>';
	});
	$(".diruser").click(function() {
		document.getElementById("index").innerHTML = '<object type="text/html" data="user/diruser.html" width="100%" height="100%" ></object>';

	});
	$(".dirorder").click(function() {
		document.getElementById("index").innerHTML = '<object type="text/html" data="order/dirorder.html" width="100%" height="100%" ></object>';

	});
	$(".delorder").click(function() {
		document.getElementById("index").innerHTML = '<object type="text/html" data="order/delorder.html" width="100%" height="100%" ></object>';

	});
});